package com.ruoyi.project.product.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.framework.aspectj.lang.annotation.Excel;
import com.ruoyi.framework.web.domain.BaseEntity;

import java.util.List;

/**
 * 【请填写功能名称】对象 z_products
 *
 * @author ruoyi
 * @date 2025-03-24
 */
@TableName("z_products")
public class Products extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    @TableId(type = IdType.AUTO)
    private Long productId;

    /** 产品名字 */
    @Excel(name = "产品名字")
    private String name;

    /** 产品描述 */
    @Excel(name = "产品描述")
    private String description;

    /** 分类id */
    @Excel(name = "分类id")
    private Long categoryId;

    /*0未删除 2已删除*/
    private String delFlag;

    @TableField(exist = false)
    private List<ProductsFile> productsFileList;

    /*文件类型*/
    @TableField(exist = false)
    private String productType;

    public String getProductType() {
        return productType;
    }

    public void setProductType(String productType) {
        this.productType = productType;
    }

    public List<ProductsFile> getProductsFileList() {
        return productsFileList;
    }

    public void setProductsFileList(List<ProductsFile> productsFileList) {
        this.productsFileList = productsFileList;
    }

    public String getDelFlag() {
        return delFlag;
    }

    public void setDelFlag(String delFlag) {
        this.delFlag = delFlag;
    }

    public void setProductId(Long productId)
    {
        this.productId = productId;
    }

    public Long getProductId()
    {
        return productId;
    }

    public void setName(String name)
    {
        this.name = name;
    }

    public String getName()
    {
        return name;
    }

    public void setDescription(String description)
    {
        this.description = description;
    }

    public String getDescription()
    {
        return description;
    }

    public void setCategoryId(Long categoryId)
    {
        this.categoryId = categoryId;
    }

    public Long getCategoryId()
    {
        return categoryId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
                .append("productId", getProductId())
                .append("name", getName())
                .append("description", getDescription())
                .append("createTime", getCreateTime())
                .append("updateTime", getUpdateTime())
                .append("categoryId", getCategoryId())
                .toString();
    }
}
